package com.sg.business.permission.adapter.visitor;

import com.sg.business.model.RoleDefinition;
import com.sg.business.permission.model.PermissionVisitorFactory;
import com.sg.business.resource.nls.Messages;

public class ProjectTemplateRoleVisitorFactory extends PermissionVisitorFactory {

	private RoleDefinition projectRole;

	public ProjectTemplateRoleVisitorFactory(RoleDefinition projectRole) {
		this.projectRole = projectRole;
	}

	@Override
	protected  String getName() {
		return "[" + Messages.get().ProjectRole + "] "+projectRole.getLabel();
	}

	@Override
	protected  String getType() {
		return PROJECT_ROLE_DEFINITION;
	}

	@Override
	protected  Object getId() {
		return projectRole.get_id();
	}
	
}
